<html>
<head>
    <title>接口及说明</title>
    <meta charset="utf-8">
    <script src="__ROOT__/Public/api/js/jquery.1.8.js" type="text/javascript"></script>
    <script src="__ROOT__/Public/api/js/api.js" type="text/javascript"></script>
    <script>
        //接口请求地址
        var ajax_demo_url = "{:U('Api/ajax_demo')}";
    </script>
</head>
<body>
<b>接口及说明&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</b>参数请求地址：{$sendurl}
<hr/>

<div>
    1.1 测试
    <br/>
    <a href="javascript:" onclick="tran($(this));">测试：<span class="msg">[{"action":"test","username":"zhangsan","password":"1111111"}]</span></a>
    <br/>
    参数说明：action操作类型 ,对应接口api模块，Api控制器下面的方法
    <br/>
    返回说明：见测试结果
    <div>
        <br/>
        <br/>
    </div>
</div>

<div>
    1.2 测试2
    <br/>
    <a href="javascript:" onclick="tran($(this));">测试：<span class="msg">[{"action":"test1","username":"zhangsan","password":"1111111"}]</span></a>
    <br/>
    参数说明：action操作类型 ,对应接口api模块，Api控制器下面的方法
    <br/>
    返回说明：见测试结果
    <div>
        <br/>
        <br/>
    </div>
</div>











<div id="test" style="display:none;">
    <table class="e_table" cellspacing="1px" cellpadding="4px" style="text-align: left;
            margin-left: auto; margin-right: auto; width: 100%;">
        <tr>
            <td colspan="2" style="width: 100%">
                <b>接口数据测试</b>
            </td>
        </tr>
        <tr>
            <td style="width: 5%">
                Msg：
            </td>
            <td style="width: 90%">
                <textarea id="Msg" name="Msg" class="easyui-validatebox" rows="5" cols="20"
                          style="width: 100%;"></textarea>
            </td>
        </tr>
        <tr>
            <td style="width: 5%">
            </td>
            <td style="width: 90%">
                <input type="button" onclick="ajax()" value="提交处理"/>
            </td>
        </tr>
        <tr>
            <td style="width: 5%">
                返回：
            </td>
            <td style="width: 90%">
                <textarea id="Ret" name="Ret" class="easyui-validatebox" rows="5" cols="20"
                          style="width: 100%;"></textarea>
            </td>
        </tr>
    </table>
</div>

<script src="__ROOT__/Public/api/js/texiao.js" type="text/javascript"></script>
<script>
    POWERMODE.colorful = true;POWERMODE.shake = false;document.body.addEventListener('input', POWERMODE);
</script>
</body>
</html>
